﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class dog : animal,Iswim
    {
        public dog(string name) : base(name)
        {

        }
        public override void eat()
        {
            base.eat();
        }
        public void swim()
        {
            Console.WriteLine($"{name}会游泳");
        }
    }
}
